package com.wwz.service;

import io.seata.rm.tcc.api.BusinessActionContext;
import io.seata.rm.tcc.api.BusinessActionContextParameter;
import io.seata.rm.tcc.api.LocalTCC;
import io.seata.rm.tcc.api.TwoPhaseBusinessAction;

@LocalTCC
public interface ProductService {
    @TwoPhaseBusinessAction(name="product")
    int update(@BusinessActionContextParameter(paramName = "productNum") String name, @BusinessActionContextParameter(paramName = "productId") Integer id);

    boolean commit(BusinessActionContext businessActionContext);

    boolean rollback(BusinessActionContext businessActionContext);
}
